<html>
<head>
    <title></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="http://cdn.bootcss.com/twitter-bootstrap/3.0.2/css/bootstrap.min.css">
    <script src="http://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>
    <script src="http://cdn.bootcss.com/twitter-bootstrap/3.0.2/js/bootstrap.min.js"></script>
        {% block head %}

     {% endblock %}

</head>
<body>
<div class="container">
	<div class="row clearfix">
		<div class="col-md-12 column">

                      <div class="breadcrumb">
        <ul class="nav nav-pills">

          <li><a href="/" >首页</a></li>
          <li><a href="{%url users_list%}">用户</a></li>
          <li><a href="{%url groups_list%}">分组</a></li>

            {%if request.user.is_authenticated %}
            <li class="dropdown pull-right">
            <a href="#" data-toggle="dropdown" class="dropdown-toggle">{{request.user.get_profile.nickName}}<strong class="caret"></strong></a>
            <ul class="dropdown-menu">
             <li>
               <a  class="btn btn-default btn-lg active" role="button" href="{%url users_show request.user.id%}">个人信息</a>
             </li>
             <li>
               <a  class="btn btn-default btn-lg active" role="button" href="{%url users_setting ''%}">修改资料</a>
             </li>

                {%if Perm.isSiteManager%}
             <li>
               <a class="btn btn-default btn-lg active" role="button"  href="{%url manage_list%}">管理</a>
             </li>
             <li>
               <a class="btn btn-default btn-lg active" role="button"  href="/admin/">后台管理</a>
             </li>
                {%endif%}
             <li>
               <a class="btn btn-default btn-lg active" role="button"  href="{%url users_logout%}">注销</a>
             </li>
            </ul>
</li>
             {% else %}
            <li><a href="{%url users_login%}?url={{request.path}}">登陆</a></li>
            <li><a href="{%url users_register%}">注册</a></li>

             {% endif %}



         </ul>
                      </div>

      {% block main %}
      {% endblock %}
		</div>
	</div>

    <div class="row clearfix">
            <div class="col-md-12 column">
               <div class="breadcrumb">
                   版权所有 DjangoBBS By 玉树
               </div>
            </div>
     </div>

</div>
</body>
</html>